package com.example.esp8266.Library.RoomLib;

import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;
import java.io.Serializable;

@Entity(tableName = "task_group")
public class TaskGroup implements Serializable {
    @PrimaryKey(autoGenerate = true)
    public int id;

    boolean task_group_RunStatus;

    public String groupName;  // 任务组名称

    // 默认构造函数
    public TaskGroup() {}

    // 便于创建对象的构造函数
    public TaskGroup(String groupName) {
        this.groupName = groupName;
        this.task_group_RunStatus = false; // 默认状态为 false，表示停止状态
    }

    // Getters 和 Setters

    public boolean isTask_group_RunStatus() {
        return task_group_RunStatus;
    }

    public void setTask_group_RunStatus(boolean task_group_RunStatus) {
        this.task_group_RunStatus = task_group_RunStatus;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }
}